#!/usr/bin/bash
#
#  Usage: xxxxxxxx
#  Issue: 2024-05-17
# Author: Leon Hsia
#   Mail: waxwork3@163.com
#  
#delete old task
sed -i '/e286a04b20bc52074820789fd5eb78f6/d' /var/spool/cron/$USER
#add new task
echo "0 23 * * * ${PWD}/a3-daily_work.sh >/dev/null 2>&1 #magic code e286a04b20bc52074820789fd5eb78f6" >>/var/spool/cron/$USER
crontab -l
